<?php
	/**
	 * 所有控制器的父类
	 * @author Administrator
	 *
	 */
	class Controller extends SmartyView{
		
		/**
		 * 成功提示页面
		 * @param string $msg
		 * @param string $style
		 */
		protected function success($msg,$url){
			$path = APP_VIEW_PATH.'/Public/success.html';
			$this->assign('msg',$msg);
			$this->assign('url',$url);
			$this->display($path);
			die;
		}
		
		
		/**
		 * 失败提示页面
		 * @param string $msg
		 * @param string $style
		 */
		protected function error($msg,$url){
			$path = APP_VIEW_PATH.'/Public/error.html';
			$this->assign('msg',$msg);
			$this->assign('url',$url);
			$this->display($path);
			die;
		}
		
	}